css: border-style: hidden computes a 0 border
authorBenjamin Otte <otte@redhat.com>
Sat, 7 Jan 2012 16:45:15 +0000 (17:45 +0100)
committerBenjamin Otte <otte@redhat.com>
Mon, 9 Jan 2012 17:37:59 +0000 (18:37 +0100)
gtk/gtkcssstylepropertyimpl.c

index 4ec3c8e35cd11d4d7d71f15678832cb6c20f4fda..7638f942cd64d719ebf0b312f52916435640f170 100644 (file)
@@ -448,7 +448,8 @@ compute_border_width (GtkCssStyleProperty    *property,
   border_style = g_value_get_enum (_gtk_style_context_peek_property (context, _gtk_style_property_get_name (GTK_STYLE_PROPERTY (style))));
 
   g_value_init (computed, G_TYPE_INT);
-  if (border_style == GTK_BORDER_STYLE_NONE)
+  if (border_style == GTK_BORDER_STYLE_NONE ||
+      border_style == GTK_BORDER_STYLE_HIDDEN)
     g_value_set_int (computed, 0);
   else
     g_value_copy (specified, computed);